# Copyright (c) 2019 Presto Labs Pte. Ltd.
# Author: xguo

from coin.exchange.base.kr_rest.product_info import ProductInfo, ProductHolder
from coin.exchange.gopax.kr_rest.product import GopaxProduct
from coin.exchange.base.tick import GopaxKrwTickPrice

# TODO: apply actual override which is below.
'''
BTC 0.00005
EOS 0.1
LUNA 0.5
LTC 0.005
MKR 0.001
OMG 0.1
REP 0.05
GNO 0.01
SBD 0.5
'''


def get_holder_from_product(product):
  assert isinstance(product, GopaxProduct)
  assert product.quote.symbol == 'KRW', product.quote
  product_info = ProductInfo(qty_precision=4, tick_price_cls=GopaxKrwTickPrice)
  return ProductHolder(product, product_info)
